// 获取qiniuToken
import request from '@/utils/request'

// 获取token
export function getQiNiuToken() {
  return request({
    url:'/qiniu/getToken',
    method:'get'
  })
}

// 上传文件
export function uploadFile(file) {
  return request({
    url:'/qiniu/upload',
    method:'post',
    headers:{"Content-type": "multipart/form-data"},
    data: file
  })
}
